#define _CRT_SECURE_NO_WARNINGS 1
#include<list>
#include<vector>
#include<iostream>
using namespace std;
int main()
{
	/*list<int>a;
	list<char>b;
	list<int>c(5,0);
	vector<int>a(6, 1);
	list<int>d(a.begin(),a.end());*/
	//list<int>a{ 1,2,3,4,65,6 };
	//cout << "max_size:" << a.max_size()<<endl;
	//cout << "empty:" << a.empty()<<endl;
	//cout <<"size:"<<a.size()<<endl;
	//cout << "front:" << a.front() << endl;
	//cout << "back:" << a.back() << endl;

	//list<int>::iterator it = a.begin();
	//for (; it != a.end(); it++)
		//cout << *(it);
	//list<int>a{ 2,3,4,5 };
	//a.push_front(1);
	//a.push_back(6);
	//a.insert(a.end(),7 );
	//for (auto ch : a)
	//	cout << ch << " ";
	/*list<int>a{ 1,1,2,3,4,5,6,6 };
	a.pop_back();
	a.pop_front();
	for (auto ch : a)
		cout << ch << " ";*/
    list<int>a{ 1,1,2,3,4,5,6,6 };
	list<int>b{ 4,5,6};
	list<int>::iterator pos=a.insert(a.begin(), 5);
	cout << *pos;

	/*a.swap(b);
	for (auto ch : a)cout << ch<<" ";
	cout << endl;
	for (auto ch : b)cout << ch << " ";
	cout << endl;*/
}